import request from "@/utils/request";
/**
 * @desc 获取业务字典
 * @param {code} 字典编号
 */
export function getDictBiz(code) {
	return request.get("/app/blade-system/dict-biz/dictionary", {
    code
  })
}
/**
 * @desc 获取系统字典
 * @param {code} 字典编号
 */
export function getSysDictBiz(code) {
	return request.get("/app/blade-system/dict/dictionary", {
    code
  })
}
/**
 * @desc 获取详情
 * @param {id} 详情id
 */
export function getPatrolDetail(id) {
	return request.get("/app/infoman/inspectRecord/detail", {
    id
  })
}
/**
 * @desc 提交
 * @param {id} 详情id
 */
// export function submitPatrol(params) {
// 	return request.post("/app/infoman/inspectRecord/submit", params)
// }
export function submitPatrol(params) {
	return request.post("/app/app-mine/submitInspectRecord", params)
}

/**
 * @desc 获取所有点位
 */
// export function getAllPoint(params) {
// 	return request.get("/app/infoman/inspectPoint/fullList", params)
// }

export function getAllPoint(params) {
	return request.get("/app/app-mine/inspectPointFullList", params)
}